package com.probiz.estore.system.service.impl;

import java.math.BigDecimal;
import java.util.List;

import com.probiz.estore.Constants;
import com.probiz.estore.common.model.system.PaymentHistory;
import com.probiz.estore.core.service.impl.GenericManagerImpl;
import com.probiz.estore.system.dao.PaymentHistoryDao;
import com.probiz.estore.system.service.PaymentHistoryManager;


/**
 * PaymentHistory Business Delegate (Proxy) implementation to handle communication between web and
 * persistence layer. Implementation of PaymentHistoryManager interface.
 * Developer introduced interfaces should be declared here. Won't get overwritten.
 */
public class PaymentHistoryManagerImpl extends GenericManagerImpl<PaymentHistory> implements com.probiz.estore.system.service.PaymentHistoryManager {
	private PaymentHistoryDao paymentHistoryDao = null;
	
	public void setPaymentHistoryDao(PaymentHistoryDao paymentHistoryDao) {
		this.paymentHistoryDao = paymentHistoryDao;
	}

	/*
	 * (non-Javadoc)
	 * @see com.probiz.estore.system.service.PaymentHistoryManager#getIsExistPaymentHistory(java.lang.String, java.lang.String, java.lang.Integer, java.math.BigDecimal, java.lang.Short)
	 */
	public boolean getIsExistPaymentHistory(String flowNo,String orderNo,Integer paymentGatewayId,BigDecimal amount,Short flag){
		return paymentHistoryDao.getIsExistPaymentHistory(flowNo, orderNo, paymentGatewayId, amount, flag);
	}

	@Override
	protected void initManager() {
		this.dao=paymentHistoryDao;
	}

	@Override
	protected void preDelete(PaymentHistory entity) {
		
	}

	@Override
	protected void preSave(PaymentHistory entity) {
		
	}

	
}
